BISONFILE := test.tab



TESTBISON := test1.tab

PROJECT_DIR := project
COMMON_DIR := common
BASE_DIR := base
COMPLIER_BISON := $(PROJECT_DIR)/mycomplier.tab
COMPLIER_FLEX := $(PROJECT_DIR)/mycomplier.yy
COMPLIER_FILE := $(PROJECT_DIR)/mycomplier.c
FLEX_FILE = $(PROJECT_DIR)/mycomplier.l
BISON_FILE = $(PROJECT_DIR)/mycomplier.y
LEX := $(PROJECT_DIR)/lex.yy
# PHONY := all
# _all:

# all:
# 	ls -al
# $(CURDIR)/Makefile Makefile: ;

# include ./makefile.dep
# PHONY += ddd
# ddd:
# 	ls -al
# .PHONY: $(PHONY)

m:test.l test.y
	set -e
	flex test.l
	bison -d test.y
	gcc  $(BISONFILE).c $(LEX).c common.c -o ee	

fb:fb1-5.l fb1-5.y
	flex fb1-5.l
	bison -d fb1-5.y
	g++  fb1-5.tab.c lex.yy.c -o ee
# com: mycomplier.l mycomplier.y
test: $(FLEX_FILE) $(BISON_FILE) 
	set -e
	flex -o $(LEX).c $(FLEX_FILE) 
	bison -o $(COMPLIER_FILE) -d $(BISON_FILE) 
	g++  test.cpp  $(BASE_DIR)/program.cpp -I include -o ee 


com: $(FLEX_FILE) $(BISON_FILE) 
	set -e
	flex -o $(LEX).c $(FLEX_FILE) 
	bison -o $(COMPLIER_FILE) -d $(BISON_FILE) 
	g++ -g $(COMPLIER_FILE) $(LEX).c $(COMMON_DIR)/common.cpp $(BASE_DIR)/program.cpp -I include -o ee 